package com.working.libview.widget.banner

import android.content.Context
import android.view.View

interface BannerFactory<T> {
    /**
     * 创建View
     * @param context
     * @return
     */
    fun createView(context: Context?): View

    /**
     * 绑定数据
     * @param context
     * @param position
     * @param data
     */
    fun onBind(view: View, position: Int, data: T?)
}